package cn.momoshenchi.mapper;

import cn.momoshenchi.pojo.Tips;
import cn.momoshenchi.pojo.UserTips;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity cn.momoshenchi.pojo.Tips
 */
public interface TipsMapper extends BaseMapper<Tips> {

    /**
     * 通过用户Id随机返回小知识
     * @param userTipsList
     * @return
     */
    Tips getRandomOneWithoutUser( @Param("userTipsList") List<UserTips> userTipsList);

    /**
     * 随机返回小知识
     * @param
     * @return
     */
    Tips getRandomOne();
}




